package itsm.isperp.module.repository.configuration;

import itsm.isperp.framework.data.mybatis.dao.CUDMapper;
import itsm.isperp.module.entity.configuration.ConfCategoryProperty;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 配置分类属性定义数据库映射器
 * 
 * @author lizx
 * @date 2013-4-29
 */
@Repository
public interface ConfCategoryPropertyMapper extends
		CUDMapper<ConfCategoryProperty> {

	/**
	 * 根据配置项分类ID获取其自定义属性（包括其父节点的属性）
	 * 
	 * @param categoryId
	 *            配置项分类ID
	 * @return DataResponse
	 */
	public List<Map<String, Object>> findAllPropertyByCategoryId(
			String categoryId);

	public List<ConfCategoryProperty> findAllPropertyByCategoryId2(
			@Param("categoryId") String categoryId);

	public List<Map<String, Object>> findAllPropertyByCategoryIdAndTecServiceId(
			@Param("categoryId") String categoryId,
			@Param("tecServiceId") String tecServiceId);
	
	 public List<ConfCategoryProperty> findAllPropertyByCategoryIdEx(
	      String categoryId);

}
